@extends('home.home')
@section('title',$title)
@section('content')
<!--content-->
<div class="container">
		<div class="account">
		<h1>欢迎登录 ！</h1>
		 @if(session('info'))
         <p style="color: gold;">{{session('info')}}</p>
         @endif
		<div class="account-pass">
		<div class="col-md-8 account-top">
			<form action="{{url('/home/index/login')}}" method="post">
			{{csrf_field()}}
			<div> 	
				<span>账号</span>
				<input type="text" name="uname" value="{{old('uname')}}"> 
			</div>
			<div> 
				<span >密码</span>
				<input type="password" name="upwd" value="{{old('upwd')}}">
			</div>	
			<div> 	
				<span>验证码</span>
				<input type="text" name="Acode" style="width: 200px;">
                <img  id="code" src="{{url('/admin/code')}}" width="150px" name="code"><br/>
			</div>			
				<input type="submit" value="登录"><br> 
				<a class="news-letter" href="#">
				<label class="checkbox"><input type="checkbox" name="checkMe" ><i> </i>记住我</label>
			    </a>
				<a class="news-letter" href="#">
				<label class="checkbox">忘记密码</label>
				</a> 
			</form>
		</div>
		<div class="col-md-4 left-account ">
			<a href=""><img class="img-responsive " src="{{asset('/shop/images/s1.jpg')}}" alt=""></a>
			<div class="five">
			<h2>25% </h2><span>折扣</span>
			</div>
			<a href="{{url('/home/index/register')}}" class="create">注册一个账号</a>
<div class="clearfix"> </div>
		</div>
	<div class="clearfix"> </div>
	</div>
	</div>

</div>
    <script>
         var codeImg = document.getElementById('code');
         codeImg.onclick = function()
         {
          var str = "{{url('/admin/code')}}";
          var rand = Math.random();
          str +='/'+rand;
          this.src = str;
         }
    </script>
<!--//content-->
@endsection